package cn.iocoder.yudao.module.member.controller.admin.leaveword.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 用户留言新增/修改 Request VO")
@Data
public class LeaveWordSaveReqVO {

    @Schema(description = "主键自增", requiredMode = Schema.RequiredMode.REQUIRED, example = "1331")
    private Long id;

    @Schema(description = "用户id", requiredMode = Schema.RequiredMode.REQUIRED, example = "18091")
    @NotNull(message = "用户id不能为空")
    private Long userId;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotEmpty(message = "名称不能为空")
    private String name;

    @Schema(description = "联系方式", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "联系方式不能为空")
    private String phone;

    @Schema(description = "留言")
    private String message;

}